package com.frejoys.common.dto.agent;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author wangzhicheng
 * @version 1.0
 * @date 2024/4/24 15:42
 */
@Data
public class AgentRoleSaveDto {

    //角色名称
    @NotBlank(message = "{600}")
    @Schema(type = "String", name = "name", description = "角色名称", required = true, defaultValue = "测试")
    private String name;

    //父id
    @NotNull(message = "{600}")
    @Schema(type = "Integer", name = "pid", description = "父id", defaultValue = "1")
    private Integer pid;

    //返利比例
    @NotNull(message = "{600}")
    @Schema(type = "Integer", name = "rebateRatio", description = "返利比例", required = true, defaultValue = "1")
    private Integer rebateRatio;
}
